import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'equip-software-version',
    template: `<div class='softwareContainer'>
                 <div class='equip-software-top'>
                    <div><span>干式变压器主软件：</span><span>1.2.0</span></div>
                    <div><span>整流器主软件：</span><span>2.2.0 </span><span nz-popconfirm [nzPopconfirmShowArrow]="false" nzPopconfirmTitle="2.1.0升级到2.2.0" nzOkText="确认"  nzCancelText ="" nzPopconfirmPlacement="left" >！！！</span></div>
                 </div>
                 <div class='equip-software-table'>
                    <table>
                        <tr>
                            <th>软件名称</th>
                            <th>版本号</th>
                            <th>更新时间</th>
                        </tr>
                        <tr *ngFor="let item of table_mock_data">
                            <td>{{item.name}}</td>
                            <td>{{item.version}}</td>
                            <td>{{item.update_time}}</td>
                        </tr>
                    </table>
                 </div>    

               </div>`,
    styleUrls: ['./components.less']
})

export class SoftwareVersionComponent implements OnInit {
    table_mock_data = [
        {
            name: '主软件',
            version: '1.2.0',
            update_time: '2021-01-30'
        },
        {
            name: '主软件',
            version: '1.1.0',
            update_time: '2021-01-19'
        },
        {
            name: '主软件',
            version: '1.0.1',
            update_time: '2021-01-15'
        }, {
            name: '主软件',
            version: '1.0.0',
            update_time: '2021-02-22'
        }
    ]
    ngOnInit(): void {

    }
}